import { HttpRequestOptions, HttpRequestBase } from "./httpRequest";
import type { HttpRequestConfig } from "./type";
// Http请求
export class DefaultHttpRequest extends HttpRequestBase {
    constructor(config?: HttpRequestConfig) {
        const options = new HttpRequestOptions();
        let defaultConfig = options.getConfig();
        if (config) {
            defaultConfig = Object.assign(defaultConfig, config);
        }
        super(defaultConfig);
    }
}
export const defaultHttpRequest = new DefaultHttpRequest();